package com.cloudcc.mobile.adapter;

import android.content.Context;

import com.cloudcc.cloudframe.adapter.CommonAdapter;
import com.cloudcc.cloudframe.adapter.ViewHolder;
import com.cloudcc.mobile.R;

/**
 * @Description: 简单text的适配器
 * @author wangzhiqiang
 * @date 2015-12-1 下午1:31:20
 * 
 * @param <T>
 */
public class TextAdapter<T> extends CommonAdapter<T> {

	public TextAdapter(Context mContext) {
		super(mContext);
	}

	@Override
	public void convert(ViewHolder holder, T t) {
		holder.setText(R.id.tv1, t.toString());
	}

	@Override
	public int getLayoutId() {
		return R.layout.view_textview;
	}

}
